#ifndef BOOK__H
#define BOOK__H

#include <string>

class book
{
	private:
		int id;
		std::string author;
		std::string title;
		std::string publisher;
		int year;
		int edition;
		std::string ISBN;
		bool loanable;
	public:
		book(const std::string &author,
             const std::string &title,
			 const std::string &publisher,
			 int year,
			 int edition,
			 const std::string &ISBN );
		int GetID() { return id; }
		std::string GetAuthor() { return author; }
		std::string GetTitle() { return title; }
		std::string GetPublisher() { return publisher; }
		int GetYear() { return year; }
		int GetEdition() { return edition; }
		std::string GetISBN() { return ISBN; }
		bool IsLoanable() { return loanable; }
		void SetAuthor(std::string author) { this->author=author; }
		void SetTitle(std::string title) { this->title=title; }
		void SetPublisher(std::string publisher) { this->publisher=publisher; }
		void SetYear(int year) { this->year=year; }
		void SetEdition(int edition) { this->edition=edition; }
		void SetISBN(std::string ISBN) { this->ISBN=ISBN; }
		void Loan()	{ loanable=false; }
		void Return()	{ loanable=true; }
};

#endif
